path = require("node:path")

const name = 'kaka';
// D:\gitee\Tutorial\JavaScriptTutorial\node\lesson01\core_path\users\kaka\notes.txt
console.log(path.join(__dirname, 'users', name, 'notes.txt'))